package com.example.traning.spring.ioc.aop;

import com.example.traning.spring.ioc.aop.service.RoleService;
import com.example.traning.spring.ioc.aop.service.RoleServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * ComponentScan 扫描该路径下所有加了 @Component 的类，加入到 spring 容器
 * @author lei yu
 * @since 2025/04/22
 */
@EnableAspectJAutoProxy
@ComponentScan("com.example.traning.spring.ioc.aop")
@Configuration
public class AopConfig {

//    @Bean
//    public RoleService roleService() {
//        return new RoleServiceImpl();
//    }


}
